import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'

dayjs.extend(utc)

export function formatUTC(utcString: string, format: string = 'YYYY-MM-DD HH:mm:ss') {
  const resTime = dayjs.utc(utcString).utcOffset(+8).format('YYYY-MM-DD HH:mm:ss')
  return resTime
}
